<%@ include file="/taglibs.jsp"%>
<jsp:directive.page import="java.util.Random"/>
<jsp:directive.page import="java.util.Date"/>
<%if(session.getAttribute("randFormID") == null){
	Random gen = new Random(new Date().getTime());
	session.setAttribute("randFormID", gen.nextInt() + "");
}%>

<title>Winter War Administration - Edit Convention</title>

<html:form action="/wwadmin/convention" focus="convention.conName">
	<input type="hidden" name="method" value="save"/>
	<input type="hidden" name="formID" value="<%=session.getAttribute("randFormID") %>"/>
	<html:hidden property="convention.conID"/>
	<table>
		<tbody>
			<tr>
				<td><bean:message key="convention.conName"/></td>
				<td><html:text property="convention.conName"/></td>
			</tr>
			<tr>
				<td><bean:message key="convention.eventSubmissionOpen"/></td>
				<td><html:checkbox property="convention.eventSubmissionOpen"/></td>
				<td><bean:message key="convention.eventRegistrationOpen"/></td>
				<td><html:checkbox property="convention.eventRegistrationOpen"/></td>
			</tr>
			<tr>
				<td><bean:message key="convention.defaultEventCost"/></td>
				<td><html:text property="convention.defaultEventCost"/></td>
			</tr>
			<tr>
				<td><bean:message key="convention.singleDayCost"/></td>
				<td><html:text property="convention.singleDayCost"/></td>
				<td><bean:message key="convention.weekendPassCost"/></td>
				<td><html:text property="convention.weekendPassCost"/></td>
			</tr>
			<tr>
				<td><bean:message key="convention.weekendASLCost"/></td>
				<td><html:text property="convention.weekendASLCost"/></td>
				<td><bean:message key="convention.current"/></td>
				<td><html:checkbox property="convention.current"/></td>
			</tr>
			<tr>
				<td><html:submit>Save</html:submit></td>
			</tr>
		</tbody>
	</table>
</html:form>
